/*
 *  c_logic.h
 *  Maciago
 *
 *  Created by mmarcos on Sun Mar 31 2002.
 *  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
 *
 */

#import "board_data.h"
#import "string.h"

void initBoard (struct board_data *data, uchar turn);
int evaluateMove (struct board_data *data, int x, int y, uchar turn);
int checkMove (struct board_data *data, int x, int y, uchar turn, bool modify);
int markLegalMoves (struct board_data *data, uchar turn, int modify);
void markStablePieces (struct board_data *data);
bool isStable (struct board_data *data, int x, int y, uchar player);
int moveIsPossible (struct board_data *data, uchar turn);
int getOpponent (uchar turn);